package com.fy.controller;

import com.fy.dao.MsMapper;
import com.fy.entity.Ms;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/ms")
public class MsController {
    @Resource
    MsMapper msMapper;
    @GetMapping("/getAll")
    public List<Ms> findAll(){
        return msMapper.findAll();
    }

    @PostMapping("/getInfo")
    public List<Ms> getInfo(String ms_id){
        return msMapper.getInfo(ms_id);
    }

}
